#include<stdio.h>
int main()
{
	int hat[]={6,1,2,6,5,8,6,3,4,6,7,8,7,7,1,8,7,1,4,7,3,8,7,1,2,7,5,8,7,3,4,7,7,8};
	int head[12]={164,166,169,172,175,178,184,188,191,194,197};
	float headcir;
	scanf("%f",&headcir);
	//headcir=headcir*8;
	//headcir=headcir/1;
	if(headcir<20.375)
	printf("You are the proverbial pinhead. No hat for you I'm afraid.\n");
	else if(headcir>20.375&&headcir<=20.625)
	printf("%d %d/%d",hat[0],hat[1],hat[2]);
	else if(headcir>20.625&&headcir<=21)
	printf("%d %d/%d",hat[3],hat[4],hat[5]);
	else if(headcir>21&&headcir<=21.375)
	printf("%d %d/%d",hat[6],hat[7],hat[8]);
	else if(headcir>21.375&&headcir<=21.75)
	printf("%d %d/%d",hat[9],hat[10],hat[11]);
	else if(headcir>21.75&&headcir<=22.125)	
	printf("%d",hat[12]);
	else if(headcir>22.125&&headcir<=22.5)	
	printf("%d %d/%d",hat[13],hat[14],hat[15]);
	else if(headcir>22.5&&headcir<=22.875)
	printf("%d %d/%d",hat[16],hat[17],hat[18]);
	else if(headcir>22.875&&headcir<=23.25)
	printf("%d %d/%d",hat[19],hat[20],hat[21]);
	else if(headcir>23.25&&headcir<=23.625)
	printf("%d %d/%d",hat[22],hat[23],hat[24]);
	else if(headcir>23.625&&headcir<=24)
	printf("%d %d/%d",hat[25],hat[26],hat[27]);
	else if(headcir>24&&headcir<=24.375)
	printf("%d %d/%d",hat[28],hat[29],hat[30]);
	else if(headcir>24.375&&headcir<=24.625)
	printf("%d %d/%d",hat[31],hat[32],hat[33]);
	else
	printf("You, in technical parlance, are a fathead. No hat for you, I'm afraid.\n");
	return 0;

 } 
